﻿app.controller("EmailController", function ($scope, $routeParams, $location, $http) {
    $scope.sendEmail = function () {
        console.log("sendEmail firing");
        $http({ method: "POST", url: "/api/ApiEmail", data: $scope.Email })
            .success(function (sentNotice) {
                alert(sentNotice);
                $location.path("/");
            })
    };
})